﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using XinBang.Util;
using XinBang.DAL;
using XinBang.Entity;
using XinBang.BLL;

namespace XinBang.Web.Admin
{
    public partial class Index : System.Web.UI.Page
    {
        private MemberBL mbl = new MemberBL();

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Member ms = SessionUtil.GetMemberSession();
                Member mdb = mbl.GetMemberByEmail(ms.Email);
                if (mdb.Password==ms.Password)
                {
                    Response.Redirect("index.html");
                    Response.End();
                }
            }catch(Exception){

            }
        }
    }
}